* {
    margin: 0;
    padding: 0;
}

.clearfix:before,
.clearfix:after {
  content : "" ;
  display:table;
}

.clearfix:after {
  clear :both;
}

.clearfix {
  *zoom: 1;
}
/* 设置版心 */
.w {
    width: 1200px;
    margin: auto;
}
body {
    background-color: #f3f5f7;
}
li {
    list-style: none;
}
a {
    text-decoration: none;
}
/* header 模块开始 */
.header {
    height: 42px;
    /* header中的margin会覆盖w中的magrin，因此左右margin要为auto */
    margin: 30px auto;
}
.logo {
    float: left;
    width: 198px;
    height: 42px;
}
.nav {
    float: left;
    margin-left: 60px;
}
.nav ul li {
    float: left;
    margin: 0 15px;
}
.nav ul li a {
    display: block;
    height: 42px;
    line-height: 42px;
    padding: 0 10px;
    font-size: 18px;
    color: #050505;
}
.nav ul li a:hover {
    color: #00a4ff;
    border-bottom: 2px #00a4ff solid;
}
.search {
    float: left;
    width: 412px;
    height: 42px;
    margin-left: 50px;
}
.search input {
    float: left;
    width: 345px;
    height: 40px;
    border: 1px #00a4ff solid;
    /* 去除右边的边框 */
    border-right: 0;
    font-size: 14px;
    padding-left: 15px;
}
.search button {
    float: left;
    width: 50px;
    height: 42px;
    border: 0;
    background-image: url(./images/fa-search.png);
}
.user {
    float: right;
    height: 42px;
    line-height: 42px;
    margin-right: 30px;
    font-size: 14px;
    color: #666;
}
/* header模块结束 */

/* banner begin */
.banner {
    height: 420px;
    background-color: #1c036c;
}
.banner .w {
    height: 420px;
    background: url(./images/banner2.png) no-repeat top center;
}
.banner .subnav {
    width: 190px;
    height: 420px;
    background: rgba(0, 0, 0, 1);
}
.subnav {
    float: left;
}
.subnav ul li {
    height: 45px;
    line-height: 45px;
    padding-left: 20px;
}
.subnav ul li a {
    font-size: 14px;
    color: #fff;
}
.subnav ul li span {
    float: right;
    margin-right: 20px;
}
.subnav ul li a:hover {
    color: #00a4ff;
}
/* course module */
.course {
    float: right;
    width: 230px;
    height: 300px;
    background-color: #fff;
    /* 浮动得盒子不会有外边距合并得问题 */
    margin-top: 50px;
}
.course h2 {
    height: 48px;
    line-height: 48px;
    color: #fff;
    text-align: center;
    background-color: #9bceea;
    font-size: 18px;
}
.course .bd {
    padding: 0 20px;
}
.bd ul li {
    padding: 15px 0;
    border-bottom: 1px #efefef solid;
}
.bd ul li h4 {
    font-size: 16px;
    color: #4e4e4e;
}
.bd ul li p {
    font-size: 12px;
    color: #a5a5a5;
}
.bd .more {
    display: block;
    height: 38px;
    text-align: center;
    line-height: 38px;
    border: 1px #00a4ff solid;
    margin-top: 5px;
    font-size: 16px;
    font-weight: 700;
}
/* banner end */
/* 精品推荐模块开始 */
.goods {
    height: 60px;
    /* 行高会继承给3个孩子 */
    line-height: 60px;
    background-color: #fff;
    box-shadow: 0 3px 3px rgba(0, 0, 0, .3);
    margin-top: 10px;
}
.goods h3 {
    float: left;
    margin-left: 30px;
    font-size: 16px;
    color: #00a4ff;
}
.goods ul {
    float: left;
    margin-left: 30px;
}
.goods ul li {
    float: left;
}
.goods ul li a {
    padding: 0 30px;
    font-size: 16px;
    color: #050505;
    border-left: 1px rgb(114, 108, 108) solid;
}
.goods .mod {
    float: right;
    margin-right: 30px;
    font-size: 14px;
    color: #00a4ff;
}
/* box核心内容区域 */
.box {
    margin-top: 30px;
}
.box-hd {
    height: 45px;
}
.box-hd h3 {
    float: left;
    font-size: 20px;
    color: #494949;
}
.box-hd a {
    float: right;
    font-size: 12px;
    color: #a5a5a5;
    margin-right: 30px;
    margin-top: 10px;
}
.box-bd ul {
    width: 1230px;
}
.box-bd ul li {
    float: left;
    width: 228px;
    height: 270px;g
    background-color: #fff;
    margin-right: 15px;
    margin-bottom: 10px;
}
.box-bd ul li img {
    width: 100%;
}
.box-bd ul li h4 {
    margin: 20px 20px 20px 25px;
    font-size: 14px;
    font-weight: 400px;
    color: #050505;
}
.box-bd .info {
    margin: 0 25px 0 20px;
    font-size: 12px;
    color: #999;
}
.box-bd span {
    color: #ff7c2d;
}
.footer {
    height: 420px;
    background-color: #fff;
}
.footer .w {
    padding-top: 35px;
}
.footer .copyright {
    float: left;
}
.footer .copyright p {
    font-size: 12px;
    color: #666;
    margin: 20px 0 15px 0;
}
.footer .copyright a{
    display: block;
    width: 118px;
    height: 34px;
    border: 1px #00a4ff solid;
    text-align: center;
    line-height: 34px;
    font-size: 16px;
}
.footer .links {
    float: right;
    margin-right: 30px;
}
.footer .links dl {
    float: left;
    margin-left: 140px;
}
.footer .links dl dt {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}
.footer .links dl a {
    font-size: 12px;

}